package org.lds.ers.client.widgets;

import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

/**
 * 內容區域
 * @author huangkevin
 * 
 */
public class ContentArea extends VerticalPanel {
	
	private static ContentArea singleton;
	
	public static ContentArea getInstance()
	{
		if (singleton==null)
			singleton = new ContentArea();
		
		return singleton;
	}
	
	private ContentArea()
	{
		this.setWidth("100%");
		this.setHeight("100%");
		this.setStyleName("contentArea");
		
		//this.setHTML("Hello, this is content !");
		
	}
	
	public void setWidget(Widget w)
	{
		this.clear();
		this.add(w);
	}
	
	
}
